{subtemplate jameson_read:163/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div uk-grid class="uk-grid-collapse uk-margin-top paihangbang">
	<div class="uk-width-medium paihangbang-menu">
	        <ul class="uk-nav uk-padding-remove uk-margin-remove">
	            <li class="{if !isset($_GET['type'])}uk-active{/if}"><a href="{eval echo jamesonurl('paihang',0);}">{lang jameson_read:quanbu}{lang jameson_read:paihang}</a></li>
	            <li class="{if $_GET['type']=='views'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=views">{lang jameson_read:yuedubang}</a></li>
	            <li class="{if $_GET['type']=='favores'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=favores">{lang jameson_read:shoucangbang}</a></li>
	            <li class="{if $_GET['type']=='sell'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=sell">{lang jameson_read:changxiaobang}</a></li>
	            <li class="{if $_GET['type']=='scores'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=scores">{lang jameson_read:haopingbang}</a></li>
	            <li class="{if $_GET['type']=='addtime'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=addtime">{lang jameson_read:xinshubang}</a></li>
	            <li class="{if $_GET['type']=='yuepiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=yuepiao">{lang jameson_read:yuepiaobang}</a></li>
	            <li class="{if $_GET['type']=='cuigengpiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=cuigengpiao">{lang jameson_read:cuigengpiaobang}</a></li>
	            <li class="{if $_GET['type']=='tuijianpiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=tuijianpiao">{lang jameson_read:tuijianpiaobang}</a></li>
	        </ul>
	        {if $adv[0]['adv']}
	        <div class="cl" style="width: auto;margin:auto;overflow: hidden;">
	        	{eval echo stripcslashes($adv[0]['adv']);}
	        </div>
	        {/if}
	</div>
	<div class="uk-width-expand uk-margin-left">
		<div class="uk-padding-small uk-border-e6">
			{if !isset($_GET['type'])}
				<div class="uk-child-width-1-3 mtm mbm uk-grid-small" uk-grid>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:yuedubang}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['yuedu'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:shoucangbang}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['shoucang'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:haopingbang}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['haoping'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:changxiaobang}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['sell'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:xinshubang}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['zuixin'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
					<div class="uk-margin-bottom">
						<div class="zhubiaoti mb10">{lang jameson_read:yiwanjie}</div>
						<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
							{loop $paihangbang['end'] $key $book}
								{if !$key}
								<li class="tuline cl">
									<span class="z mr10 xs3">1</span>
									<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
									<div>
										<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
										<p>
										<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
										</p>
									</div>
								</li>
								{elseif $key < $_G['jameson_read']['paihangbang']}
								<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
								{/if}
							{/loop}
						</ul>
					</div>
				</div>
		{else}
				<h3 class="uk-heading-divider">
				{if $type=='views'}
				{lang jameson_read:yuedubang}
				{elseif $type=='favores'}
				{lang jameson_read:shoucangbang}
				{elseif $type=='scores'}
				{lang jameson_read:haopingbang}
				{elseif $type=='sell'}
				{lang jameson_read:changxiaobang}
				{elseif $type=='addtime'}
				{lang jameson_read:xinshubang}
				{elseif $type=='cuigengpiao'}
				{lang jameson_read:cuigengpiaobang}
				{elseif $type=='yuepiao'}
				{lang jameson_read:yuepiaobang}
				{elseif $type=='tuijianpiao'}
				{lang jameson_read:tuijianpiaobang}
				{/if}
				</h3>
				{if $books}
				<div class="uk-grid-collapse uk-child-width-1-2 shaixuanbooklist" uk-grid>
					{loop $books $key $book}
						<div class="cl uk-margin-top">
							<div class="book-img z">
			                    <a href="{eval echo jamesonurl('book',$book['book_id']);}">
			                        <img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
			                    </a>
			                </div>
			                <div class="book-info">
	                            <h4><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></h4>
	                            <a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
                            	{if $book['category_name']}
                            	<span class="pipe"> | </span>
                                 <a class="" href="{eval echo jamesonurl('shaixuan','shaixuan','category_id',$book['category_id']);}">{$book['category_name']}</a>
                            	{/if}
	                            <div class="mt5 mb5">
	                                <span class="uk-badge">
	                                {if $type=='sell'}
	                                	{$book['total']}
	                                {elseif $type=='scores'}
		                                {eval echo 2*round($book[$type]/($book['dpcount']?$book['dpcount']:1),1);}
	                                {else}
		                                {eval echo dnumber($book[$type]);}
	                                {/if}
	                                </span>
	                            </div>
	                            <p class="desco">
	                                   {$book['desc']}
	                            </p>
	                        </div>
						</div>
					{/loop}
				</div>
				<div class="cl uk-margin-top ">{$pageshow}</div>
				{else}
					<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:zanwujilu}</div>
				{/if}
		{/if}
		</div>
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:163/read_footer}